#!/bin/bash
#PBS -N test_mpi
#PBS -l nodes=6:ppn=20
#PBS -q batch
#PBS -j oe
#PBS -k oe
cd $PBS_O_WORKDIR
#hw_real=(20 20 20 20)
hw_real=(20)
#hw_imag=(-10 -12 -14 -18)
hw_imag=(0)
len=${#hw_imag[@]}
#> n4_hw\(${hw_real[$i]},${hw_imag[$i]}\).txt
for((i=0; i<$len; i++)) do
mpirun -np 120 -hostfile $PBS_NODEFILE ./test.exe<<EOF > log.txt
4
0
500
/home/public/n3lo_vlowk/renorm_cmplx/test/sp_N10_hw(${hw_real[$i]},${hw_imag[$i]})_2.1.dat
/home/public/n3lo_vlowk/renorm_cmplx/test/v_N10_hw(${hw_real[$i]},${hw_imag[$i]})_2.1.dat
10
0
0
EOF
done

